﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw.Graphic
{
    public abstract class CommonGraphic
    {
        abstract public void DrawLine(double x1, double y1, double x2, double y2);
        abstract public void DrawRectangle(double x, double y, double width, double height);
        abstract public void DrawEllipse(double x, double y, double width, double height);
        abstract public void DrawText(string text, double size, double x, double y);
        abstract public void DrawArc(double x, double y, double width, double height, double startAngle, double sweepAngle);

        virtual public void DrawPicture(List<MyShape> shapes)
        {
            foreach (var shape in shapes)
                shape.Draw(this);
        }
    }
}
